package com.jwater.spring.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:
 * @author: jnner
 * @createDate: 2021/3/28
 * @version: 1.0
 */
@RestController
public class HelloController {
    private static final Logger LOGGER = LoggerFactory.getLogger(HelloController.class);

    @GetMapping("sayHello")
    public String sayHello(String name) {
        LOGGER.info("name:" + name);
        return "hello," + name + "!";
    }
}
